import app from "./app.vue";
import Vue from 'vue'

// import '@fullcalendar/core/main.css';
// import '@fullcalendar/timegrid/main.css';


import fixtop from '../src/components/fixtop';
Vue.use(fixtop);
import fixleft from '../src/components/fixleft';
Vue.use(fixleft);
import rank from '../src/components/rank';
Vue.use(rank);
import zfxq from '../src/components/zfxq';
Vue.use(zfxq);
import one from '../src/components/one';
Vue.use(one);
import two from '../src/components/two';
Vue.use(two);
import three from '../src/components/three';
Vue.use(three);
import foue from '../src/components/foue';
Vue.use(foue);
import five from '../src/components/five';
Vue.use(five);
import zxtjwt from '../src/components/zxtjwt';
Vue.use(zxtjwt);
import zxbjwt from '../src/components/zxbjwt';
Vue.use(zxbjwt);
import cswbj from '../src/components/cswbj';
Vue.use(cswbj);

Date.prototype.formatDate = function(format) {
  var date = this;
  var map = {
    "M": date.getMonth() + 1, // 月份
    "d": date.getDate(), // 日
    "h": date.getHours(), // 小时
    "H": date.getHours(), // 小时
    "m": date.getMinutes(), // 分钟
    "s": date.getSeconds(), // 秒
    "q": Math.floor((date.getMonth() + 3) / 3), // 季度
    "S": date.getMilliseconds() // 毫秒
  };

  format = format.replace(/([yMdhHmsqS])+/g, function(all, t) {
    var v = map[t];
    if(v !== undefined) {
      if(all.length > 1) {
        v = '0' + v;
        v = v.substr(v.length-all.length);
      }
      return v;
    } else if(t === 'y') {
      return (date.getFullYear() + '').substr(4 - all.length);
    }
    return all;
  });
  return format;
};


Vue.prototype.$echarts = echarts
app.setup();
